Cofe.Model.FetchAjax = {
    extended: function () {

       Model.include({
        url: "",
        fetch: function () {
            ajaxSync2("read", this);
        }
        this.fetch(this.proxy(function () {
            ajaxSync2("read", this);
        }));
    },

     var ajaxSync2 = function (method, model) {
        if (Model._noSync) return;

        var params = {
            type: methodMap[method],
            contentType: "application/json",
            dataType: "json",
            processData: false
        };

        params.url = model.url;

        if (!params.url) throw ("Invalid URL");

        if (method == "read")
            params.success = function (data) {
                (model.refresh || model.load).call(model, data);
                model.trigger("fetched", model);
            };

        params.error = function (xhr, s, e) {
            model.trigger("ajaxError", xhr, s, e);
        };

        $.ajax(params);
    };


   
};